package com.aboverock.core.orm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 字符串全局唯一ID（mybatisplus ID_WORKER_STR）.
 *
 * @author Rock Wang
 */
public abstract class StringBaseEntity extends BaseEntity<String> {

    /** id. */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

}
